home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 1999 August / SGI Freeware 1999 August.iso / dist / fw_perl.idb / usr / freeware / src / perl / patches.z / patches
Encoding:
Text File  |  1998-10-28  |  19.2 KB  |  612 lines

  1. *** ./lib/chat2.pl    Thu Jul 23 21:00:53 1998
  2. --- ../perl5.005_02/./lib/chat2.pl    Fri Aug 14 11:06:00 1998
  3. ***************
  4. *** 4,12 ****
  5.   # multihome additions by A.Macpherson@bnr.co.uk
  6.   # allow for /dev/pts based systems by Joe Doupnik <JRD@CC.USU.EDU>
  7.   
  8. - package chat;
  9.   require 'sys/socket.ph';
  10.   
  11.   if( defined( &main'PF_INET ) ){
  12.       $pf_inet = &main'PF_INET;
  13. --- 4,12 ----
  14.   # multihome additions by A.Macpherson@bnr.co.uk
  15.   # allow for /dev/pts based systems by Joe Doupnik <JRD@CC.USU.EDU>
  16.   
  17.   require 'sys/socket.ph';
  18. + package chat;
  19.   
  20.   if( defined( &main'PF_INET ) ){
  21.       $pf_inet = &main'PF_INET;
  22. *** ./lib/ExtUtils/Install.pm    Thu Jul 23 21:00:35 1998
  23. --- ../perl5.005_02/./lib/ExtUtils/Install.pm    Fri Aug 14 10:57:06 1998
  24. ***************
  25. *** 23,28 ****
  26. --- 23,38 ----
  27.       unlink $_[0] or Carp::croak("Cannot forceunlink $_[0]: $!")
  28.   }
  29.   
  30. + use File::Path ();
  31. + ## begin SGI build environment hack
  32. + my($sgisrcoffs);
  33. + sub mkpath
  34. + {
  35. +   File::Path::mkpath(@_) if (@_ =~ m,blib/, or ! $sgisrcoffs);
  36. + }
  37. + ## end SGI build environment hack
  38.   sub install {
  39.       my($hash,$verbose,$nonono,$inc_uninstall) = @_;
  40.       $verbose ||= 0;
  41. ***************
  42. *** 34,42 ****
  43.       use File::Basename qw(dirname);
  44.       use File::Copy qw(copy);
  45.       use File::Find qw(find);
  46. -     use File::Path qw(mkpath);
  47.       use File::Compare qw(compare);
  48.   
  49.       my(%hash) = %$hash;
  50.       my(%pack, $dir, $warn_permissions);
  51.       my($packlist) = ExtUtils::Packlist->new();
  52. --- 44,63 ----
  53.       use File::Basename qw(dirname);
  54.       use File::Copy qw(copy);
  55.       use File::Find qw(find);
  56.       use File::Compare qw(compare);
  57.   
  58. +     ## begin SGI build environment hack
  59. +     if ($ENV{"RAWIDB"} and $ENV{"SRC"}) {
  60. +     my($curdir) = cwd();
  61. +     chdir($ENV{"SRC"});    # I need the physical SRC path
  62. +     my($srcdir) = cwd();    # to compare to the current source dir
  63. +     chdir($curdir);
  64. +     my($sgisrclen) = length($srcdir);
  65. +     open(RAWIDB, ">>$ENV{'RAWIDB'}") or Carp::croak("You do not have permission to append to the $ENV{'RAWIDB'} file");
  66. +         $sgisrcoffs = substr(cwd(),$sgisrclen);
  67. +         $sgisrcoffs = substr($sgisrcoffs, 1) if $sgisrcoffs =~ /^\//;
  68. +     }
  69. +     ## end SGI build environment hack
  70.       my(%hash) = %$hash;
  71.       my(%pack, $dir, $warn_permissions);
  72.       my($packlist) = ExtUtils::Packlist->new();
  73. ***************
  74. *** 49,54 ****
  75. --- 70,77 ----
  76.       }
  77.       my($source_dir_or_file);
  78.       foreach $source_dir_or_file (sort keys %hash) {
  79. +         # SGI build environment hack
  80. +         last if $sgisrcoffs;
  81.       #Check if there are files, and if yes, look if the corresponding
  82.       #target directory is writable for us
  83.       opendir DIR, $source_dir_or_file or next;
  84. ***************
  85. *** 98,103 ****
  86. --- 121,140 ----
  87.           my $targetdir = MY->catdir($targetroot,$File::Find::dir);
  88.           my $targetfile = MY->catfile($targetdir,$_);
  89.   
  90. +             ## begin SGI build environment hack
  91. +         if ($sgisrcoffs) {
  92. +         my($dest) = substr($targetfile, 1);
  93. +         $dest = substr($dest, 1) if $dest =~ /^\//; # strip ^/
  94. +         my($src) = $MY->catfile($sgisrcoffs,$source,$File::Find::dir,$_);
  95. +                 $src =~ s,/\./,/,g;
  96. +                 $dest =~ s,/\./,/,g;
  97. +         print RAWIDB "f 444 root sys $dest $src";
  98. +         print RAWIDB " $ENV{'IDB'}" if $ENV{'IDB'};
  99. +         print RAWIDB "\n";
  100. +         return;
  101. +         }
  102. +             ## end SGI build environment hack
  103.           my $diff = 0;
  104.           if ( -f $targetfile && -s _ == $size) {
  105.           # We have a good chance, we can skip this one
  106. ***************
  107. *** 136,143 ****
  108.       }, ".");
  109.       chdir($cwd) or Carp::croak("Couldn't chdir to $cwd: $!");
  110.       }
  111.       umask $umask unless $Is_VMS;
  112. !     if ($pack{'write'}) {
  113.       $dir = dirname($pack{'write'});
  114.       mkpath($dir,0,0755);
  115.       print "Writing $pack{'write'}\n";
  116. --- 173,186 ----
  117.       }, ".");
  118.       chdir($cwd) or Carp::croak("Couldn't chdir to $cwd: $!");
  119.       }
  120. +     ## begin SGI build environment hack
  121. +     if ($sgisrcoffs > 0) {
  122. +     close(RAWIDB);
  123. +     return;
  124. +     }
  125.       umask $umask unless $Is_VMS;
  126. !     if ($pack{'write'} and ! $sgisrcoffs) {
  127. !     ## end SGI build environment hack
  128.       $dir = dirname($pack{'write'});
  129.       mkpath($dir,0,0755);
  130.       print "Writing $pack{'write'}\n";
  131. ***************
  132. *** 244,250 ****
  133.   
  134.       use File::Basename qw(dirname);
  135.       use File::Copy qw(copy);
  136. -     use File::Path qw(mkpath);
  137.       use File::Compare qw(compare);
  138.       use AutoSplit;
  139.       # my $my_req = $self->catfile(qw(auto ExtUtils Install forceunlink.al));
  140. --- 287,292 ----
  141. *** ./lib/ExtUtils/MM_Unix.pm    Thu Jul 23 21:00:37 1998
  142. --- ../perl5.005_02/./lib/ExtUtils/MM_Unix.pm    Sat Aug 15 15:46:55 1998
  143. ***************
  144. *** 350,356 ****
  145.         echo optdebug=\$optdebug
  146.         echo large=\$large
  147.         echo split=\$split
  148. !       `;
  149.       my($line);
  150.       foreach $line (@o){
  151.           chomp $line;
  152. --- 350,356 ----
  153.         echo optdebug=\$optdebug
  154.         echo large=\$large
  155.         echo split=\$split
  156. !       `;            # "
  157.       my($line);
  158.       foreach $line (@o){
  159.           chomp $line;
  160. ***************
  161. *** 463,468 ****
  162. --- 463,505 ----
  163.       my(@m,$m);
  164.       push(@m,"\n# These definitions are from config.sh (via $INC{'Config.pm'})\n");
  165.       push(@m,"\n# They may have been overridden via Makefile.PL or on the command line\n");
  166. +     # SGI: IRIX-build extensions to use $ROOT and $TOOLROOT
  167. +     # pretend that this was added as command-line args.
  168. +     my($root) = $ENV{"ROOT"};
  169. +     my($toolroot) = $ENV{"TOOLROOT"};
  170. +     if (length($root) > 1) {
  171. +     $self->{"CC"}.=" -nostdinc";
  172. +     $self->{"CCFLAGS"} = " -I".
  173. +         $self->catdir($root,"usr/include") ." ". $self->{"CCFLAGS"};
  174. +     if ($self->{"CC"} =~ /-n32/ or $self->{"CCFLAGS"} =~ /-n32/) {
  175. +         $self->{"LDFLAGS"} = " -nostdlib -L".
  176. +         $self->catdir($root,"usr/lib32") ." ". $self->{"LDFLAGS"};
  177. +         $self->{"LDDLFLAGS"} .= " -check_registry " .
  178. +         $self->catdir($root,"usr/lib32", "so_locations");
  179. +     } elsif ($self->{"CC"} =~ /-64/ or $self->{"CCFLAGS"} =~ /-64/) {
  180. +         $self->{"LDFLAGS"} = " -nostdlib -L".
  181. +         $self->catdir($root,"usr/lib64") ." ". $self->{"LDFLAGS"};
  182. +         $self->{"LDDLFLAGS"} .= " -check_registry " .
  183. +         $self->catdir($root,"usr/lib64", "so_locations");
  184. +     } else {
  185. +         $self->{"LDFLAGS"} = " -nostdlib -L".
  186. +         $self->catdir($root,"usr/lib") ." ". $self->{"LDFLAGS"};
  187. +         $self->{"LDDLFLAGS"} .= " -check_registry " .
  188. +         $self->catdir($root,"usr/lib", "so_locations");
  189. +     }
  190. +     }
  191. +     if (length($toolroot) > 1) {
  192. +     $self->{"CC"}=$self->catdir($toolroot,"usr/bin",$self->{"CC"});
  193. +     $self->{"LD"}=$self->catdir($toolroot,"usr/bin",$self->{"LD"});
  194. +     $self->{"AR"}=$self->catdir($toolroot,"usr/bin",$self->{"AR"});
  195. +     }
  196. +     if ($ENV{"INSTALLDIRS"} eq "vendor") {
  197. +     $self->{"INSTALLMAN3DIR"} = "/usr/freeware/catman/u_man/man3";
  198. +     $self->{"INSTALLSCRIPT"} = "/usr/freeware/bin";
  199. +     }
  200. +     # end SGI customizations
  201.       my(%once_only);
  202.       foreach $m (@{$self->{CONFIG}}){
  203.       # SITE*EXP macros are defined in &constants; avoid duplicates here
  204. ***************
  205. *** 509,514 ****
  206. --- 546,569 ----
  207.       my($self) = @_;
  208.       my(@m,$tmp);
  209.   
  210. +     # SGI: IRIX-build extensions to use $ROOT and $TOOLROOT
  211. +     # pretend that this was added as command-line args.
  212. +     if ($ENV{"INSTALLDIRS"} eq "vendor") {
  213. +     $self->{"INSTALLSITELIB"} = $self->catdir($self->{"INSTALLPRIVLIB"},
  214. +                           "sgi_perl");
  215. +     $self->{"INSTALLSITEARCH"} = $self->catdir($self->{"INSTALLPRIVLIB"},
  216. +                            "sgi_perl");
  217. +     $self->{"SITELIBEXP"} = $self->{"INSTALLSITELIB"};
  218. +     $self->{"SITEARCHEXP"} = $self->{"INSTALLSITEARCH"};
  219. +     $self->{"INSTALLMAN3DIR"} = $self->{"MAN3DIR"} = $self->{"MAN3DIREXP"} =
  220. +         "/usr/share/catman/p_man/man3"; # hard-wired
  221. +     $self->{"INSTALLSCRIPT"} = $self->{"SCRIPTDIR"} =
  222. +         $self->{"SCRIPTDIREXP"} = "/usr/sbin"; # also hard-wired
  223. +     }
  224. +     if ($ENV{"PERL_SRC"}) {
  225. +     $self->{"PERL_SRC"} = $ENV{"PERL_SRC"};
  226. +     }
  227. +     # end of SGI customizations
  228.       for $tmp (qw/
  229.   
  230.             AR_STATIC_ARGS NAME DISTNAME NAME_SYM VERSION
  231. ***************
  232. *** 1030,1037 ****
  233.          if ($^O eq 'solaris');
  234.   
  235.       # The IRIX linker also doesn't use LD_RUN_PATH
  236. !     $ldrun = qq{-rpath "$self->{LD_RUN_PATH}"}
  237. !     if ($^O eq 'irix' && $self->{LD_RUN_PATH});
  238.   
  239.       push(@m,'    LD_RUN_PATH="$(LD_RUN_PATH)" $(LD) -o $@ '.$ldrun.' $(LDDLFLAGS) '.$ldfrom.
  240.           ' $(OTHERLDFLAGS) $(MYEXTLIB) $(PERL_ARCHIVE) $(LDLOADLIBS) $(EXPORT_LIST)');
  241. --- 1085,1093 ----
  242.          if ($^O eq 'solaris');
  243.   
  244.       # The IRIX linker also doesn't use LD_RUN_PATH
  245. ! #     this breaks ROOT/TOOLROOT builds!!!!!
  246. ! #    $ldrun = qq{-rpath "$self->{LD_RUN_PATH}"}
  247. ! #    if ($^O eq 'irix' && $self->{LD_RUN_PATH});
  248.   
  249.       push(@m,'    LD_RUN_PATH="$(LD_RUN_PATH)" $(LD) -o $@ '.$ldrun.' $(LDDLFLAGS) '.$ldfrom.
  250.           ' $(OTHERLDFLAGS) $(MYEXTLIB) $(PERL_ARCHIVE) $(LDLOADLIBS) $(EXPORT_LIST)');
  251. ***************
  252. *** 1956,1964 ****
  253.   
  254.   pure_perl_install ::
  255.       }.$self->{NOECHO}.q{$(MOD_INSTALL) \
  256. !         read }.$self->catfile('$(PERL_ARCHLIB)','auto','$(FULLEXT)','.packlist').q{ \
  257.           write }.$self->catfile('$(INSTALLARCHLIB)','auto','$(FULLEXT)','.packlist').q{ \
  258. !         $(INST_LIB) $(INSTALLPRIVLIB) \
  259.           $(INST_ARCHLIB) $(INSTALLARCHLIB) \
  260.           $(INST_BIN) $(INSTALLBIN) \
  261.           $(INST_SCRIPT) $(INSTALLSCRIPT) \
  262. --- 2012,2026 ----
  263.   
  264.   pure_perl_install ::
  265.       }.$self->{NOECHO}.q{$(MOD_INSTALL) \
  266. ! };
  267. !     unless ($ENV{"$RAWIDB"}) {
  268. !     push @m,
  269. ! q{        read }.$self->catfile('$(PERL_ARCHLIB)','auto','$(FULLEXT)','.packlist').q{ \
  270.           write }.$self->catfile('$(INSTALLARCHLIB)','auto','$(FULLEXT)','.packlist').q{ \
  271. ! };
  272. ! }
  273. ! push @m,
  274. ! q{        $(INST_LIB) $(INSTALLPRIVLIB) \
  275.           $(INST_ARCHLIB) $(INSTALLARCHLIB) \
  276.           $(INST_BIN) $(INSTALLBIN) \
  277.           $(INST_SCRIPT) $(INSTALLSCRIPT) \
  278. ***************
  279. *** 1970,1978 ****
  280.   
  281.   pure_site_install ::
  282.       }.$self->{NOECHO}.q{$(MOD_INSTALL) \
  283. !         read }.$self->catfile('$(SITEARCHEXP)','auto','$(FULLEXT)','.packlist').q{ \
  284.           write }.$self->catfile('$(INSTALLSITEARCH)','auto','$(FULLEXT)','.packlist').q{ \
  285. !         $(INST_LIB) $(INSTALLSITELIB) \
  286.           $(INST_ARCHLIB) $(INSTALLSITEARCH) \
  287.           $(INST_BIN) $(INSTALLBIN) \
  288.           $(INST_SCRIPT) $(INSTALLSCRIPT) \
  289. --- 2032,2046 ----
  290.   
  291.   pure_site_install ::
  292.       }.$self->{NOECHO}.q{$(MOD_INSTALL) \
  293. ! };
  294. !     unless ($ENV{"$RAWIDB"}) {
  295. !     push @m,
  296. ! q{        read }.$self->catfile('$(SITEARCHEXP)','auto','$(FULLEXT)','.packlist').q{ \
  297.           write }.$self->catfile('$(INSTALLSITEARCH)','auto','$(FULLEXT)','.packlist').q{ \
  298. ! };
  299. !     }
  300. !     push @m,
  301. ! q{        $(INST_LIB) $(INSTALLSITELIB) \
  302.           $(INST_ARCHLIB) $(INSTALLSITEARCH) \
  303.           $(INST_BIN) $(INSTALLBIN) \
  304.           $(INST_SCRIPT) $(INSTALLSCRIPT) \
  305. *** ./lib/ExtUtils/Liblist.pm    Wed Aug  5 16:02:22 1998
  306. --- ../perl5.005_02/./lib/ExtUtils/Liblist.pm    Sat Aug 15 13:46:34 1998
  307. ***************
  308. *** 41,46 ****
  309. --- 41,54 ----
  310.       my($fullname, $thislib, $thispth, @fullname);
  311.       my($pwd) = cwd(); # from Cwd.pm
  312.       my($found) = 0;
  313. +     # SGI product build extension:
  314. +     if (length($ENV{"ROOT"}) > 1) {
  315. +         # $ROOT overrides standard library search path
  316. +         @libpath = map($_ = $self->catdir($ENV{"ROOT"}, $_), @libpath);
  317. +         $potential_libs = join(" ", map($_ = "-L$_", @libpath)) . " "
  318. +             . $potential_libs;
  319. +         push(@ldloadlibs, "-nostdlib");
  320. +     }
  321.   
  322.       foreach $thislib (split ' ', $potential_libs){
  323.   
  324. *** ./lib/ExtUtils/MakeMaker.pm    Thu Jul 23 21:00:40 1998
  325. --- ../perl5.005_02/./lib/ExtUtils/MakeMaker.pm    Sat Aug 15 13:42:35 1998
  326. ***************
  327. *** 60,66 ****
  328.       sub DESTROY {}
  329.   }
  330.   
  331. ! # "predeclare the package: we only load it via AUTOLOAD
  332.   # but we have already mentioned it in @ISA
  333.   package ExtUtils::Liblist;
  334.   
  335. --- 60,66 ----
  336.       sub DESTROY {}
  337.   }
  338.   
  339. ! # predeclare the package: we only load it via AUTOLOAD
  340.   # but we have already mentioned it in @ISA
  341.   package ExtUtils::Liblist;
  342.   
  343. ***************
  344. *** 506,511 ****
  345. --- 506,514 ----
  346.       $v =~ tr/\n/ /s;
  347.       push @{$self->{RESULT}}, "#    $key => $v";
  348.       }
  349. +     # SGI-specific: turn off parallel-make
  350. +     push @{$self->{RESULT}}, "\n# SGI: no parallel make\n.MAKEFLAGS: -J 1";
  351.   
  352.       # turn the SKIP array into a SKIPHASH hash
  353.       my (%skip,$skip);
  354. *** ./x2p/cflags.SH    Thu Jul 23 21:02:58 1998
  355. --- ../perl5.005_02/./x2p/cflags.SH    Fri Aug 14 11:07:11 1998
  356. ***************
  357. *** 84,89 ****
  358. --- 84,97 ----
  359.   
  360.       ccflags="`echo $ccflags | sed -e 's/-DMULTIPLICITY//'`"
  361.   
  362. +         # SGI-ism for ROOT/TOOLROOT build
  363. +         if test -n "$TOOLROOT"; then
  364. +                 cc=`echo "$TOOLROOT/usr/bin/$cc" | sed -e "s,//,/,g"`
  365. +         fi
  366. +         if test -n "$ROOT"; then
  367. +                 ccflags=`echo "$ccflags -nostdinc -I$ROOT/usr/include" | sed -e "s,//,/,g"`
  368. +         fi
  369.       echo "$cc -c $ccflags $optimize $large $split"
  370.       eval "$also "'"$cc -c $ccflags $optimize $large $split"'
  371.   
  372. *** ./pp.c    Tue Aug  4 14:58:01 1998
  373. --- ../perl5.005_02/./pp.c    Tue Aug 11 10:52:12 1998
  374. ***************
  375. *** 1574,1582 ****
  376.       if (value == 0.0)
  377.       value = 1.0;
  378.       if (!srand_called) {
  379. !     (void)my_srand((unsigned)seed());
  380.       srand_called = TRUE;
  381.       }
  382.   #if RANDBITS == 31
  383.       value = my_rand() * value / 2147483648.0;
  384.   #else
  385. --- 1574,1589 ----
  386.       if (value == 0.0)
  387.       value = 1.0;
  388.       if (!srand_called) {
  389. ! #if RANDBITS == 48
  390. !        (void)srand48((long)seed());
  391. ! #else
  392. !        (void)my_srand((unsigned)seed());
  393. ! #endif
  394.       srand_called = TRUE;
  395.       }
  396. + #if RANDBITS == 48
  397. +     value = drand48() * value;
  398. + #else
  399.   #if RANDBITS == 31
  400.       value = my_rand() * value / 2147483648.0;
  401.   #else
  402. ***************
  403. *** 1590,1595 ****
  404. --- 1597,1603 ----
  405.   #endif
  406.   #endif
  407.   #endif
  408. + #endif
  409.       XPUSHn(value);
  410.       RETURN;
  411.   }
  412. ***************
  413. *** 1602,1608 ****
  414. --- 1610,1620 ----
  415.       anum = seed();
  416.       else
  417.       anum = POPu;
  418. + #if RANDBITS == 48
  419. +     (void)srand48((long)anum);
  420. + #else
  421.       (void)my_srand((unsigned)anum);
  422. + #endif
  423.       srand_called = TRUE;
  424.       EXTEND(SP, 1);
  425.       RETPUSHYES;
  426. *** ./config_h.SH    Thu Jul 23 20:59:41 1998
  427. --- ../perl5.005_02/./config_h.SH    Sun Aug 16 09:41:16 1998
  428. ***************
  429. *** 1605,1614 ****
  430. --- 1605,1619 ----
  431.    *    C preprocessor can make decisions based on it.  It is only
  432.    *    defined if the system supports long long.
  433.    */
  434. + /* USE_LONG_LONG:
  435. +  *    This symbol says to enable the experimental UV == long long
  436. +  *    code.
  437. +  */
  438.   #$d_longlong HAS_LONG_LONG        /**/
  439.   #ifdef HAS_LONG_LONG
  440.   #define LONGLONGSIZE $longlongsize        /**/
  441.   #endif
  442. + #$d_uselonglong USE_LONG_LONG        /**/
  443.   
  444.   /* HAS_SETGROUPS:
  445.    *    This symbol, if defined, indicates that the setgroups() routine is
  446. *** ./cflags.SH    Thu Jul 23 20:59:40 1998
  447. --- ../perl5.005_02/./cflags.SH    Fri Aug 14 10:52:48 1998
  448. ***************
  449. *** 124,129 ****
  450. --- 124,140 ----
  451.           optimize="$optdebug"
  452.       fi
  453.   
  454. +         # SGI-ism for ROOT/TOOLROOT build
  455. +     if test -s "perl.cfb" ; then
  456. +         CFB="-fb perl.cfb";
  457. +     fi
  458. +         if test -n "$TOOLROOT"; then
  459. +                 cc=`echo "$TOOLROOT/usr/bin/$cc $CFB" | sed -e "s,//,/,g"`
  460. +         fi
  461. +         if test -n "$ROOT"; then
  462. +                 ccflags=`echo "$ccflags -nostdinc -I$ROOT/usr/include" | sed -e "s,//,/,g"`
  463. +         fi
  464.       : Can we perhaps use $ansi2knr here
  465.       echo "$cc -c -DPERL_CORE $ccflags $optimize $perltype $large $split"
  466.       eval "$also "'"$cc -DPERL_CORE -c $ccflags $optimize $perltype $large $split"'
  467. *** ./installman    Thu Jul 23 21:00:23 1998
  468. --- ../perl5.005_02/./installman    Sun Aug 23 14:24:58 1998
  469. ***************
  470. *** 23,37 ****
  471.   $usage =
  472.   "Usage:  installman --man1dir=/usr/wherever --man1ext=1
  473.                       --man3dir=/usr/wherever --man3ext=3
  474. !             --notify --help
  475.       Defaults are:
  476.       man1dir = $Config{'installman1dir'};
  477.       man1ext = $Config{'man1ext'};
  478.       man3dir = $Config{'installman3dir'};
  479.       man3ext = $Config{'man3ext'};
  480.       --notify (or -n) just lists commands that would be executed.\n";
  481.   
  482. ! GetOptions( qw( man1dir=s man1ext=s man3dir=s man3ext=s notify n help)) 
  483.       || die $usage;
  484.   die $usage if $opt_help;
  485.   
  486. --- 23,38 ----
  487.   $usage =
  488.   "Usage:  installman --man1dir=/usr/wherever --man1ext=1
  489.                       --man3dir=/usr/wherever --man3ext=3
  490. !             --packdir=/usr/whatever/ --notify --help
  491.       Defaults are:
  492.       man1dir = $Config{'installman1dir'};
  493.       man1ext = $Config{'man1ext'};
  494.       man3dir = $Config{'installman3dir'};
  495.       man3ext = $Config{'man3ext'};
  496. +     packdir = $Config{'installarchlib'};
  497.       --notify (or -n) just lists commands that would be executed.\n";
  498.   
  499. ! GetOptions( qw( man1dir=s man1ext=s man3dir=s man3ext=s packdir=s notify n help)) 
  500.       || die $usage;
  501.   die $usage if $opt_help;
  502.   
  503. ***************
  504. *** 40,45 ****
  505. --- 41,47 ----
  506.   $man1ext = defined($opt_man1ext) ? $opt_man1ext : $Config{'man1ext'};
  507.   $man3dir = defined($opt_man3dir) ? $opt_man3dir : $Config{'installman3dir'};
  508.   $man3ext = defined($opt_man3ext) ? $opt_man3ext : $Config{'man3ext'};
  509. + $packdir = defined($opt_packdir) ? $opt_packdir : $Config{'installarchlib'};
  510.   
  511.   $notify = $opt_notify || $opt_n;
  512.   
  513. ***************
  514. *** 53,59 ****
  515.   -x "t/perl$Config{exe_ext}"        || warn "WARNING: You've never run 'make test'!!!",
  516.       "  (Installing anyway.)\n";
  517.   
  518. ! $packlist = ExtUtils::Packlist->new("$Config{installarchlib}/.packlist");
  519.   
  520.   # Install the main pod pages.
  521.   runpod2man('pod', $man1dir, $man1ext);
  522. --- 55,61 ----
  523.   -x "t/perl$Config{exe_ext}"        || warn "WARNING: You've never run 'make test'!!!",
  524.       "  (Installing anyway.)\n";
  525.   
  526. ! $packlist = ExtUtils::Packlist->new("$packdir/.packlist");
  527.   
  528.   # Install the main pod pages.
  529.   runpod2man('pod', $man1dir, $man1ext);
  530. *** ./Makefile.SH    Thu Jul 23 20:59:30 1998
  531. --- ../perl5.005_02/./Makefile.SH    Fri Aug 14 17:01:20 1998
  532. ***************
  533. *** 90,95 ****
  534. --- 90,114 ----
  535.       base=`echo "$f" | sed 's/.*\///'`
  536.       nonxs_list="$nonxs_list ext/$f/pm_to_blib"
  537.   done
  538. + # SGI-specific for building in the cross-compilation environment.
  539. + case "$cc" in
  540. +     *"-n32"*)    ABILIB="32"    ;;
  541. +     *"-64"*)    ABILIB="64"    ;;
  542. +     *"-32"*|*)    ABILIB=""    ;;
  543. + esac
  544. + if test -n "$TOOLROOT"; then
  545. +     if test -s perl.cfb; then
  546. +         CFB="-fb perl.cfb"
  547. +     fi
  548. +     cc=`echo "$TOOLROOT/usr/bin/$cc $CFB" | sed -e "s,//,/,g"`
  549. +     ld=`echo "$TOOLROOT/usr/bin/$ld $CFB" | sed -e "s,//,/,g"`
  550. + fi
  551. + if test -n "$ROOT"; then
  552. +     ldflags=`echo "$ldflags -nostdlib -L$ROOT/usr/lib$ABILIB -L$ROOT/lib$ABILIB" | sed -e "s,//,/,g"`
  553. +     lddlflags=`echo "$lddlflags -check_registry $ROOT/usr/lib$ABILIB/so_locations" | sed -e "s,//,/,g"`
  554. + fi
  555.   
  556.   echo "Extracting Makefile (with variable substitutions)"
  557.   $spitshell >Makefile <<!GROK!THIS!
  558. *** ./utils/h2ph.PL    Thu Jul 23 21:02:28 1998
  559. --- ../perl5.005_02/./utils/h2ph.PL    Mon Aug 24 21:32:30 1998
  560. ***************
  561. *** 230,238 ****
  562.           print OUT $t,"}\n";
  563.           } elsif(/^undef\s+(\w+)/) {
  564.           print OUT $t, "undef(&$1) if defined(&$1);\n";
  565. !         } elsif(/^error\s+(.*)/) {
  566.           print OUT $t, "die(\"$1\");\n";
  567. !         } elsif(/^warning\s+(.*)/) {
  568.           print OUT $t, "warn(\"$1\");\n";
  569.           } elsif(/^ident\s+(.*)/) {
  570.           print OUT $t, "# $1\n";
  571. --- 230,238 ----
  572.           print OUT $t,"}\n";
  573.           } elsif(/^undef\s+(\w+)/) {
  574.           print OUT $t, "undef(&$1) if defined(&$1);\n";
  575. !         } elsif(/^error\s+"?([^"\n]*)/) {
  576.           print OUT $t, "die(\"$1\");\n";
  577. !         } elsif(/^warning\s+"?([^"\n]*)/) {
  578.           print OUT $t, "warn(\"$1\");\n";
  579.           } elsif(/^ident\s+(.*)/) {
  580.           print OUT $t, "# $1\n";
  581. *** ./Configure    Fri Aug  7 14:38:53 1998
  582. --- ../perl5.005_02/./Configure    Sat Aug 15 00:01:56 1998
  583. ***************
  584. *** 1143,1149 ****
  585.   case "$fastread$alldone" in
  586.   yescont|yesexit) ;;
  587.   *)
  588. !     if test ! -t 0; then
  589.           echo "Say 'sh Configure', not 'sh <Configure'"
  590.           exit 1
  591.       fi
  592. --- 1143,1149 ----
  593.   case "$fastread$alldone" in
  594.   yescont|yesexit) ;;
  595.   *)
  596. !     if test "$extractsh" != "true" -a ! -t 0; then
  597.           echo "Say 'sh Configure', not 'sh <Configure'"
  598.           exit 1
  599.       fi
  600.